#ifndef SINGLETON_H_
#define SINGLETON_H_

#include "Memory.h"
#include <iostream>
template<class T>
class Singleton
{
public:

    static T* Instance()
    {
        static T* p = new T;
        return p;
    }

    static void Kill()
    {
        delete Instance();
    }
};

#endif